<?php /* $imgsrc = (isset($data->users->profiles[0]->photo) && $data->users->profiles[0]->photo != '') ? getRequestbaseUrl() . getuploadFolderDir() . $data->users_id . '/profile/minithumb/' . $data->users->profiles[0]->photo : getWorkNoshopimage(SkillConfig::skill_myinbox_image);?>

  <div class="row" style="color: black;">
  <div class="col-lg-12 col-sm-12 column12 col-md-12">
  <div class="row"> <div  class="col-lg-2 col-sm-2 column2 col-md-2"> <img src="<?php echo $imgsrc; ?>" alt="..."> </div>
  <div  class="col-lg-10 col-sm-10 column10 col-md-10">
  <div class="caption" style="color: black;">
  <h5><?php echo (!empty($data->classes_id)) ? WORK_SHOP_NAME . ' ' . $data->classes->class_titile : COURSE_NAME . ' ' . $data->courses->course_titile; ?></h5>

  <p><?php echo html_entity_decode($data->reviews_text) ; ?></p>
  </div> <div class="gap"> </div>
  <?php echo (isset($data->users->profiles[0]->first_name)) ? $data->users->profiles[0]->last_name . ' ' . $data->users->profiles[0]->first_name : SkillConfig::SKILL_NO_USERNAME; ?>            <?php echo $data->create_time; ?>
  </div>


  </div>
  </div>
  </div>
  <div class="gap"> </div>
  <?php */ ?>

<?php
$reviewFrom = Users::getFrontEndUser($data->from_user_id);

$reviewTo = empty($data->backend_user_id) ? Users::getFrontEndUser($data->to_user_id) : Users::getBackEndUser($data->backend_user_id);
$useridPath = empty($data->backend_user_id) ? $data->to_user_id : 'backend' . $data->backend_user_id;
$imgsrc = (isset($reviewTo->photo) && $reviewTo->photo != '') ? getRequestbaseUrl() . getuploadFolderDir() . $useridPath . '/profile/thumb/' . $reviewTo->photo : getWorkNoshopimage(SkillConfig::skill_myinbox_image);
?>
<div class="row" style="color: black;">
    <div class="col-lg-12 col-sm-12 column12 col-md-12">
        <div class="row"> <div  class="col-lg-2 col-sm-2 column2 col-md-2"> <img src="<?php echo $imgsrc; ?>" alt="..."> </div>
            <div  class="col-lg-10 col-sm-10 column10 col-md-10"> 
                <div class="caption" style="color: black;">
                    <h5> Trainer Name: <?php
                echo !empty($reviewTo) ? $reviewTo['first_name'] . '   ' . $reviewTo['last_name'] : SkillConfig::SKILL_NO_USERNAME;
                ?> </h5>

                    <p><?php echo html_entity_decode($data->reviews_text); ?></p>
                </div> <div class="gap"> </div>
                <?php
                echo !empty($reviewFrom) ? $reviewFrom['first_name'] . '   ' . $reviewFrom['last_name'] : SkillConfig::SKILL_NO_USERNAME;
                ?>            <?php echo $data->create_time; ?>
            </div>


        </div>
    </div>
</div>
<div class="gap"> </div>

